<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Account')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-account" class="form-control" name="row[account]" type="text" value="{$row.account|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-nickname" class="form-control" name="row[nickname]" type="text" value="{$row.nickname|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pass')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pass" class="form-control" name="row[pass]" type="text" value="" placeholder="留空为不修改">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Paypass')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-paypass" class="form-control" name="row[paypass]" type="text" value="{$row.paypass|htmlentities}" placeholder="留空为不修改">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Qq')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-qq" class="form-control" name="row[qq]" type="number" value="{$row.qq|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Balance')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-balance" class="form-control" step="0.01" name="row[balance]" type="number" value="{$row.balance|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Jy_balance')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-jy_balance" class="form-control" step="0.01" name="row[jy_balance]" type="number" value="{$row.jy_balance|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-email" class="form-control" name="row[email]" type="text" value="{$row.email|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ip')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ip" class="form-control" name="row[ip]" type="text" value="{$row.ip|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Switch')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[switch]', ['1'=>__('Normal'), '0'=>__('冻结')],$row.switch)}
            <!-- <input id="c-switch" class="form-control" name="row[switch]" type="number" value="{$row.switch|htmlentities}"> -->
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" rows="5" name="row[content]" cols="66">{$row.content|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weight')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!-- <input id="c-weight" class="form-control" name="row[weight]" type="number" value="{$row.weight|htmlentities}"> -->
            <select id="c-weight" data-rule="required" class="form-control selectpicker" name="row[weight]">
                {foreach name="weightList" item="vo"}
                <option data-type="{$vo.id}" value="{$vo.id}" {in name="$vo.id" value="$row.weight"}selected{/in}>{$vo.name}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_real')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-is_real" data-rule="required" class="form-control selectpicker" name="row[is_real]">
                <option value="0" {in name="0" value="$row.is_real"}selected{/in}>未认证</option>
                <option value="1" {in name="1" value="$row.is_real"}selected{/in}>已认证</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Id_card')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-id_card" class="form-control" name="row[id_card]" type="text" value="{$row.id_card|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <!-- {eq name = "row.auth_status" value="0"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Auth_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-auth_status" class="form-control" name="row[auth_status]" type="text" value="未提交">
        </div>
    </div>
    {else /}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Auth_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-auth_status" data-rule="required" class="form-control selectpicker" name="row[auth_status]">
                <option value="0" {in name="0" value="$row.auth_status"}selected{/in}>未提交</option>
                <option value="1" {in name="1" value="$row.auth_status"}selected{/in}>审核中</option>
                <option value="2" {in name="2" value="$row.auth_status"}selected{/in}>已认证</option>
                <option value="3" {in name="3" value="$row.auth_status"}selected{/in}>不通过</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Video')}:</label>
        <div class="col-xs-12 col-sm-8">
            <a href="{$row.video}" target="_blank">
                <video src="{$row.video}" class="user-image" alt="" style="width: 160px;"></video>
            </a>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Hold_card')}:</label>
        <div class="col-xs-12 col-sm-8">
            <img src="{$row.hold_card|htmlentities}" class="user-image" alt="" style="width: 160px;">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Auth_desc')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-auth_desc" rows="5" name="row[auth_desc]" cols="66">{$row.auth_desc|htmlentities}</textarea>
        </div>
    </div>
    {/eq} -->
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!-- <input id="c-type" class="form-control" name="row[type]" type="number" value="{$row.type|htmlentities}"> -->
            <select id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
                <option value="1" {in name="1" value="$row.type"}selected{/in}>手机号注册</option>
            </select>
        </div>
    </div>
    <!-- <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div> -->
</form>
